package cn.shop.humh.product.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: cn.shop.humh.product.controller
 * @ClassName: DemoController
 * @Description:
 * @author: hgx61
 * @date: 2024/7/10 10:40
 */

@RestController
@RequestMapping("/demo")
public class DemoController {

  @GetMapping("/hello")
  public String hello() {
    return "Hello, World!";
  }

  @PostMapping("/division")
  public float division(int a,int b){
    return a/b;
  }

}
